#include <memory>
#include <iostream>
#include <cassert>

class TcpSocket
{
};

int main()
{
    std::shared_ptr<TcpSocket> newsock = nullptr;

    if (newsock == nullptr)
    {
        std::cout << "命中" << std::endl;
    }
    else
    {
        std::cout << "没命中" << std::endl;
    }

    //需要满足（）内部的条件，否则断言错误
    assert(false);
    return 0;
}